<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        canvas{
            border: 1px solid black;
        }
    </style>
</head>
<body>
    <canvas width="800" height="500"></canvas>
    <script>
        let canvas = document.querySelector('canvas');
        let ctx = canvas.getContext('2d');
        ctx.strokeStyle = 'skyblue';
        ctx.beginPath();
        ctx.moveTo(200,200);
        // ctx.lineTo(300,300);
        ctx.quadraticCurveTo(200,100,300,100);
        ctx.lineTo(500,100);
        ctx.quadraticCurveTo(600,100,600,200);
        ctx.quadraticCurveTo(600,300,500,300);
        ctx.lineTo(300,300);
        ctx.lineTo(200,350);
        ctx.lineTo(270,300);
        ctx.quadraticCurveTo(200,300,200,200);
        // 虽然没有老陈画的好，但是也还可以了哈
        ctx.stroke();
        ctx.closePath();
    </script>
</body>
</html>